package cn.wolfcode.education.mapper;

import cn.wolfcode.education.domain.Payroll;
import cn.wolfcode.education.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface PayrollMapper {
    int deleteByPrimaryKey(Long id);
    int insert(Payroll record);
    Payroll selectByPrimaryKey(Long id);
    List<Payroll> selectAll();
    int updateByPrimaryKey(Payroll record);

    int queryForCount(QueryObject qo);

    List<Payroll> queryForList(QueryObject qo);


    void insertFromFile(Payroll payroll);

    void updatePayTime(@Param("id") Long id, @Param("payTime") Date payTime, @Param("finalSalary") BigDecimal finalSalary);
}